﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GRUPO_4.Dominio.Postulante>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <h2>Crear Postulantes </h2>

  <% Html.EnableClientValidation(); %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.codPostulante)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.codPostulante)%>
                <%: Html.ValidationMessageFor(model => Model.codPostulante)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.apePaternoPostulante)%>
            </div>
               <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.apePaternoPostulante)%>
                <%: Html.ValidationMessageFor(model => Model.apePaternoPostulante)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => Model.apeMaternoPostulante)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.apeMaternoPostulante)%>
                <%: Html.ValidationMessageFor(model => Model.apeMaternoPostulante)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => Model.nombre)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.nombre)%>
                <%: Html.ValidationMessageFor(model => Model.nombre)%>
            </div>
             <div class="editor-label">
                <%: Html.LabelFor(model => Model.sexo)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.sexo)%>
                <%: Html.ValidationMessageFor(model => Model.sexo)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.FechaNacimiento)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.FechaNacimiento)%>
                <%: Html.ValidationMessageFor(model => Model.FechaNacimiento)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.numeroDocumento)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.numeroDocumento)%>
                <%: Html.ValidationMessageFor(model => Model.numeroDocumento)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.correo)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.correo)%>
                <%: Html.ValidationMessageFor(model => Model.correo)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.clave)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.clave)%>
                <%: Html.ValidationMessageFor(model => Model.clave)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.telefono)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.telefono)%>
                <%: Html.ValidationMessageFor(model => Model.telefono)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.ultimaEmpresa)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.ultimaEmpresa)%>
                <%: Html.ValidationMessageFor(model => Model.ultimaEmpresa)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.area)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.area)%>
                <%: Html.ValidationMessageFor(model => Model.area)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.cargo)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.cargo)%>
                <%: Html.ValidationMessageFor(model => Model.cargo)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.codProfesion)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.codProfesion)%>
                <%: Html.ValidationMessageFor(model => Model.codProfesion)%>
            </div>
            <p>
                <input type="submit" value="Crear" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar", "Index") %>
    </div>
</asp:Content>
